home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 December / MACPOWER-1997-12.ISO.7z / MACPOWER-1997-12.ISO / AMUG / PROGRAMMING / Raven 1.2 Examples.sit / Raven 1.2 Examples / Quill / Source / ViewWindow.h < prev    next >
Text File  |  1996-10-28  |  1KB  |  58 lines

  1. /*
  2.  *  File:       ViewWindow.h
  3.  *  Summary:       The default window panes are edited in.
  4.  *  Written by: Jesse Jones
  5.  *
  6.  *  Copyright ゥ 1996 Jesse Jones. 
  7.  *    For conditions of distribution and use, see copyright notice in ZTypes.h  
  8.  *
  9.  *  Change History (most recent first):    
  10.  *
  11.  *         <->     9/02/96    JDJ        Created
  12.  */
  13.  
  14. #pragma once
  15.  
  16. #include <ZListener.h>
  17. #include <ZWindow.h>
  18.  
  19. #include "ResourceMap.h"
  20.  
  21.  
  22. // ===================================================================================
  23. //    class CViewWindow
  24. // ===================================================================================
  25. class CViewWindow : public TWindow, public MListener<SResourceMapMessage> {
  26.  
  27.     typedef TWindow Inherited;
  28.  
  29. //-----------------------------------
  30. //    Initialization/Destruction
  31. //
  32. public:
  33.     virtual             ~CViewWindow();
  34.         
  35.                         CViewWindow(const SWindowInfo& info, CResourceMap* rsrcMap, ResID id, MCommander* superCommander);
  36.                         
  37. //-----------------------------------
  38. //    New API
  39. //
  40. protected:
  41.             void         UpdateTitle();
  42.                                     
  43. //-----------------------------------
  44. //    Inherited API
  45. //
  46. protected:
  47.     virtual void         Invariant() const;
  48.  
  49.     virtual void         OnBroadcast(const SResourceMapMessage& mesg);
  50.  
  51. //-----------------------------------
  52. //    Member data
  53. //
  54. protected:
  55.     CResourceMap*    mRsrcMap;
  56.     ResID            mRsrcID;
  57. };
  58.